X = int(input())
Y = int(input())
Z = int(input())
Q = int(input())
S = X*2 + Y * 5 + Z * 3
if S >= 0:
    print('Yes')
    print(Q - S)
else:
    print('No')
    print(S - Q)